package com.woniu.auth.feign;

import com.woniu.user.domain.Customer;
import com.woniu.user.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user")
public interface UserFeign {

    @RequestMapping("/user/tbuser/login")
    public User login(@RequestParam("username") String username, @RequestParam("password") String password);

    @RequestMapping("/user/tbcustomer/webLogin")
    Customer selectCustomerByAccountAndPass(@RequestParam("customerAccount") String customerAccount,@RequestParam("customerPassword") String customerPassword);
}
